<?php

/*
 * Object/TaskDetails.php
 */

namespace Ticket\Model\Object;

class TaskDetails extends XObject {

    public $id;
    public $task;
    public $libelle;
    public $description;
    public $remarques;
    public $etat;

    /**
     * Constructeur
     * 
     * @param array $data
     */
    public function __construct($data = array()) {
        $this->exchangeArray($data);
    }

    /**
     * Remplissage des données
     * 
     * @param array $data
     */
    public function exchangeArray($data) {
        $this->id          = isset($data['id']) ? (int) $data['id'] : null;
        $this->task        = isset($data['task']) ? (int) $data['task'] : 0;
        $this->libelle     = isset($data['libelle']) ? $data['libelle'] : '';
        $this->description = isset($data['description']) ? $data['description'] : '';
        $this->remarques   = isset($data['remarques']) ? $data['remarques'] : '';
        $this->etat        = isset($data['etat']) ? (int) $data['etat'] : 0;
    }

}
